package com.vhall.component.entity.account.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author dalong
 * @date 2021-04-25 17:01
 */

@Data
public class ThirdAuthLoginVO implements Serializable {

    @NotBlank(message = "不能为空")
    @ParamName(value = "third_user_id")
    private String thirdUserId;

    @NotBlank(message = "不能为空")
    private String username;

    @NotBlank(message = "不能为空")
    @ParamName("nick_name")
    private String nickname;

    private String phone;

    @ParamName(value = "profile_photo")
    private String profilePhoto;

    @Range(min = 1, max = 2)
    private Integer sex;

    private String sign;

    @ParamName(value = "signed_at")
    private String signedAt;
}
